package com.orm.handler;

import java.sql.JDBCType;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;


/**
 *
 */
public class FloatTypeHandler extends BaseTypeHandler<Float> {
	
	@Override
	public void setNotNullParameter(PreparedStatement ps, int i, Float parameter, JDBCType jdbcType) throws SQLException {
		ps.setFloat(i, parameter);
	}
	
	@Override
	public Float getNullableResult(ResultSet rs, String columnName) throws SQLException {
		return rs.getFloat(columnName);
	}
	
	@Override
	public Float getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
		return rs.getFloat(columnIndex);
	}
}
